/**
*      author: Y_Yao
*      created: 2024-11-11 18:57:07
**/

#include<bits/stdc++.h>

using namespace std;
using LL = long long;
const LL LLINF = 1e18;
const int INF = 0x3f3f3f3f;
string s;
float n,a,b;

void solve()
{
    cin >> n >> a >> b;
    cin >> s;
    int x = 0,y = 0;
    int flag = 0;
    for(int j = 0;j < 100;j++)
    for(int i = 0;i < n;i++)
    {
        if(s[i] == 'N')
        {
            y++;
        }
        else if(s[i] == 'E')
        {
            x++;
        }
        else if(s[i] == 'S')
        {
            y--;
        }
        else if(s[i] == 'W')
        {
            x--;
        }
        if(x == a && y == b)
        {
            cout << "YES" << endl;
            return;
        }
    }

    cout << "NO" << endl;
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);

    int t = 1;
    cin >> t;
    while(t--)
    {
        solve();
    }
    return 0;
}